home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5600 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  42 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!jtessin
  3. From: jtessin@netcom.com (John Tessin)
  4. Subject: Re: TCP/IP in Windows
  5. Message-ID: <jtessinDMBDD6.IGA@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. X-Newsreader: TIN [version 1.2 PL1]
  8. References: <4eh5i2$3a8@news.axess.com>
  9. Date: Mon, 5 Feb 1996 17:46:18 GMT
  10. Sender: jtessin@netcom21.netcom.com
  11.  
  12. Mark Santelli (marks@axess.com) wrote:
  13. : Does anyone know what functions are availible to do  TCP/IP
  14. : communications in Windows. I've done stream socket programming
  15. : in a UNIX environment using functions like socket(), listen(),
  16. : accept(), etc. I use Borland's C++ 4.52 and can't seem to get
  17. : any help on the subject. How does one write internet and 
  18. : communication based code in Windows programming.
  19.  
  20. The sockets API for windows is called WINSOCK.  The standard Berkely 
  21. sockets are supported, for the most part, along with calls that are 
  22. designed to integrate well with the messaging paradigm of Windows.
  23. The spec is available on the net, I downloaded it myself.  Just do a 
  24. search with the keyword Winsock.
  25.  
  26. BTW - I don't know about Win95, but if you use NT you can use threads to 
  27. handle individual sockets with the blocking attribute, although 
  28. allocating a pool of threads to handle a linked list of sockets is more 
  29. efficient. (NT is also POSIX compliant.)
  30. -- 
  31.                                              jtessin@netcom.com
  32.                                              CIS: 71774,1731
  33.  
  34. ===============================================================
  35. If ye love wealth better than liberty, the tranquility of
  36. servitude better than the animating contest of freedom, go
  37. home from us in peace.  We seek not your counsels or arms.
  38. Crouch down and lick the hands which feed you.  May your
  39. chains set lightly upon you, and may posterity forget
  40. that ye were our countrymen."          -- Samuel Adams
  41. ===============================================================
  42.